<input type="text" name="uname" value="onClick" onClick="alert(this.name)" />

<!-- On change will work when you make changes in value and put the cursor outside the box--->
<input type="text" name="uname" value="Rasmus on Change" onChange="alert(this.value)" />

<!-- On change will work when you put the cursor outside the box --->
<input type="text" name="uname" value="Rasmus on Blur" onBlur="alert(this.value)" />
